package com.benmei.weike.dto;

public class ExchangeCourseDto {
    private Integer memb_set_id;   //套餐id
    private String course_name;  //课程名
    private Integer used_course_size;  //已用课时数
    private Integer all_course_size;   //所有课时数
    private Integer expired_month;     //剩余月数
    private Integer expired_day;     //离到期剩余天数
    private Integer ecpired_type = 0;    //1:月   2：天   3：已过期

    public Integer getMemb_set_id() {
        return memb_set_id;
    }

    public void setMemb_set_id(Integer memb_set_id) {
        this.memb_set_id = memb_set_id;
    }

    public Integer getEcpired_type() {
        if(expired_month > 0){
            this.ecpired_type = 1;
        }else if(expired_month == 0){
            this.ecpired_type = 2;
        }else if (expired_day < 0){
            this.ecpired_type = 3;

        }
        return ecpired_type;
    }

    public Integer getExpired_month() {
        return expired_month;
    }

    public void setExpired_month(Integer expired_month) {
        this.expired_month = expired_month;
    }

    public String getCourse_name() {
        return course_name;
    }

    public void setCourse_name(String course_name) {
        this.course_name = course_name;
    }

    public Integer getUsed_course_size() {
        return used_course_size;
    }

    public void setUsed_course_size(Integer used_course_size) {
        this.used_course_size = used_course_size;
    }

    public Integer getAll_course_size() {
        return all_course_size;
    }

    public void setAll_course_size(Integer all_course_size) {
        this.all_course_size = all_course_size;
    }

    public Integer getExpired_day() {
        return expired_day;
    }

    public void setExpired_day(Integer expired_day) {
        this.expired_day = expired_day;
    }
}
